import { axios } from './request'

// 获取分类左栏数据
export function getcategory() {
  return axios({
    url: '/category'
  })
}

// 获取右侧推荐栏的图片数据
export function getSubcategory(maitKey) {
  return axios({
    url: '/subcategory',
    params: {
      maitKey
    }
  })
}

// 获取右侧商品推荐数据
export function getCategoryDetail(miniWallkey, type) {
  return axios({
    url: '/subcategory/detail',
    params: {
      miniWallkey,
      type
    }
  })
}
